// 导入默认路由
import { constantRoutes } from '@/router'
const state = {
  // 路由数组
  allRoutes: constantRoutes
}
const mutations = {
  // 修改路由数组
  setRoutes(state, newRoutes) {
    state.allRoutes = newRoutes
  }
}
const actions = {}


export default {
  // 命名空间
  namespaced: true,
  state,
  mutations,
  actions
}